using System;
using Microsoft.WindowsAzure.StorageClient;

namespace Azure.Domain.Models
{
    public class Post : TableServiceEntity
    {
        public Post(string partitionKey, string rowKey) : base(partitionKey, rowKey)
        {
        }

        public Post() : base(Guid.NewGuid().ToString(), String.Empty)
        {
        }

        public virtual DateTime Created { get; set; }
        public virtual string Title { get; set; }
        public virtual string Body { get; set; }
        public virtual string Author { get; set; }
        public virtual string Slug { get; set; }

        public int Year()
        {
            return Created.Year;
        }

        public int Month()
        {
            return Created.Month;
        }

        public int Day()
        {
            return Created.Day;
        }
    }
}